package com.manage.dao;

import com.manage.pojo.entity.CmSysRole;
import com.manage.pojo.entity.CmSysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface CmRolePermissionMapper  {

    List<CmSysRoleMenu> findAll();

    void insert(CmSysRole sysRole);

    List<CmSysRoleMenu> insertRolePermission(@Param("roleId") Integer roleId, @Param("menuIds") List<Integer> menuIds );


}
